#! /bin/bash

pushd $SYSCPAR_ROOT/scripts
[[ -d $SYSCPAR_ROOT/code/orig ]] && ( ./iorig.sh --clean ) &> /dev/null

pushd $SYSCPAR_ROOT/code
versions=`echo *`
popd
for ver in $versions
do
	( ./1st_build.sh --clean $ver ) &> /dev/null
done
./iautomake.sh --clean &> /dev/null
./itbb.sh --clean &> /dev/null
./reg_tests.sh --clean &> /dev/null
./tlm.sh --clean  &> /dev/null

for t in $SYSCPAR_ROOT/tests/*
do
	make -C $t clean &> /dev/null
done

popd
echo 'Cleaned'

